<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      //  await <Promise>
      const p1 = new Promise((resolve) => resolve(100));
      const p2 = Promise.resolve(200);
      class Person {
        async say() {
          console.log(await p1); // 100
          console.log(await p2); // 200
        }
      }
      new Person().say();
    </script>
  </body>
</html>
